-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(AsideHeader): asideHeader rewrited to hooks #102
Conversation
Preview is ready. |
|
||
interface AsideHeaderContextType { | ||
compact: boolean; | ||
export interface AsideHeaderContextType extends AsideHeaderInnerProps { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This context is not intended to drag all the props into it, since it is exported outside. Let's try to explicitly pass props whenever possible, or create a separate context for internal use
4560c61
to
23c7b19
Compare
menuItems: MenuItem[]; | ||
headerDecoration: boolean; | ||
} | ||
import {FirstPanel} from './components'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move the imports above the style imports
No description provided.